import forwardingTable
from msg import Message
from globals import globalConfigFile

def send_message_front_end (mp, source, destination, data) :

    table = forwardingTable.getForwardingTable(globalConfigFile, mp.thisName)
    msg = Message(mp.thisName, table[destination], None, data, 'unicast', destination)
    mp.send(msg)
